#include <stdio.h>

int main(){
    struct Cat {
        int age;
        char* name;
        char* color;
    } cat;
    cat.name = "小白";
    cat.age = 12;
    cat.color="白色";
    printf("cat %s %d %s \n",cat.name,cat.age,cat.color);
    struct Cat cat1;
    cat1.age = 12;
    cat1.name = "asd";
    cat1.color = "asdad";
    printf("cat1 %s %d %s \n",cat1.name,cat1.age,cat1.color);
    struct Cat cat2 = {14,"asdads","asd"};
    printf("cat2 %s %d %s \n",cat2.name,cat2.age,cat2.color);

    struct Cat* pcat = &cat;
    printf("cat2 %s %d %s \n",pcat->name,pcat->age,pcat->color);


    struct  {
        int age;
        char* name;
        char* color;
    } cat3 = {1,"a","b"};
    printf("cat3 %s %d %s \n",cat3.name,cat3.age,cat3.color);


}